@import '../../vars.css';

.overlay {
  & .bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-blue);
    opacity: 0.8;
  }

  & .box {
    position: fixed;
    width: 90%;
    height: 90%;
    background: white;
    left: 50%;
    margin-left: -45%;
    top: 50%;
    padding: 35px;
    box-sizing: border-box;
    transform: translateY(-50%);
    box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.3);
  }

  & .content {
    position: relative;
  }

  & h2 {
    color: var(--blue);
    font-size: 22px;
    margin: 0;
    line-height: 1;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 9px;
  }

  & .close-button {
    font-size: 46px;
    color: black;
    height: 24px;
    opacity: 0.2;
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
    line-height: 0;
    z-index: 100;

    &:hover {
      opacity: 0.5;
    }
  }
}